#ifndef DDIE_H
#define DDIE_H

#include <vector>
#include "DEntity.h"
#include "EDefect.h"
/*****************************************************************
 * 
 *
 *
 *****************************************************************/
class DDie : public DEntity
{
public:
	DDie();
	virtual ~DDie();

	inline void setYIndex(int yIndex) { m_yIndex = yIndex };
	inline void setXIndex(int xIndex) { m_xIndex = xIndex };
	inline int getYindex() const { return m_yIndex };
	inline int getXindex() const { return m_xIndex };

	void addEDefect( EDefect& eDefect );
	void addDDefect( DDefect& dDefect );
		
	EDefect** getEDefects( long *oNum );
	DDefect** getDDefects( long *oNum );
	DDefect** getAllDefects( long *oNum );

	long getNumberOfDefects() 		{	return m_defects.size();	}
	long getNumberOfEdefects() 		{	return m_Edefects.size();	}
	long getNumberOfAllDefects() 	{	returnm_defects.size() + m_Edefects.size() ; }	

private:
	std::vector <DDefect> m_defects;			
	std::vector <EDefect> m_Edefects;	
	int m_yIndex;
	int m_xIndex;	
};




















#endif